import App from './App'
import uView from '@/uni_modules/uview-ui'
import Vue from 'vue'
import store from './store'
import injection from '@/common/injection.js'
import uniLink from './node_modules/uni-simple-router/dist/link.vue'
import noData from '@/components/noData/index'
import { router, RouterMount } from './router.js'
Vue.prototype.$store = store
Vue.use(uView)
Vue.component('uni-link', uniLink)
Vue.component('no-data', noData)
Vue.use(router)
console.log = () => {}

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	store,
	...App,
})
app.$mount()
RouterMount(app, router, '#app')
// 引入请求封装，将app参数传递到配置中
require('@/common/request.js')(app)
Vue.use(injection, app)
